package com.cr.backbone.converter;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

import com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter;

public class DateTypeConverter extends DefaultTypeConverter {


	/**
	 * Date转为为String
	 * 双向转化
	 */
	@Override
	public Object convertValue(Map<String, Object> context, Object value,
			Class toType) {
		String format="yyyyMMdd";
		SimpleDateFormat sdf =new SimpleDateFormat(format);
		if(toType == Date.class){
			
		}else if(toType == String.class){
			
		}
		return super.convertValue(context, value, toType);
	}

}
